package 智能家电;

import java.util.*;
public class TV extends Household{
    private int channel = 1;
    private int volumeLevel = 1;
    public TV(String brand,Date productDate){
        super(brand, productDate);
        // this.brand = brand;
        // this.productDate = productDate;
    }
    public int getChannel(){
        return this.channel;
    }
    public void setChannel(int channel){
        this.channel = channel;
    }
    public int getVolumeLevel(){
        return this.volumeLevel;
    }
    public void setVolumnLevel(int volumnLevel){
        this.volumeLevel = volumnLevel;
    }
    public String toString(){
        String m = "TV[" +
               "brand=" + getBrand() +
               ", productDate=" + getProductDateString() +
               ", channel=" + getChannel() +
               ", volumeLevel=" + getVolumeLevel() +
               ']';
        return m;
    }
}